﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mui="http://firstfloorsoftware.com/ModernUI"
    xmlns:converters="clr-namespace:EpiNEXT.WPF.Converters"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:iex="clr-namespace:Microsoft.Expression.Interactivity.Input;assembly=Microsoft.Expression.Interactions"
    xmlns:local="clr-namespace:EpiNEXT.WPF">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.xaml" />
        <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.Light.xaml"/>
        <ResourceDictionary Source="/EpiNEXT.WPF;component/Resources/Designer.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <s:Boolean x:Key="True">True</s:Boolean>
    <s:Boolean x:Key="False">False</s:Boolean>

    
    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    <converters:LengthToVisibilityConverter x:Key="LengthToVisibilityConverter" />
    <converters:BooleanInverter x:Key="BooleanInverter" />
    <converters:PlusOneConverter x:Key="PlusOneConverter" />
    <converters:DoublePlusFourConverter x:Key="DoublePlusFourConverter" />
    <converters:SliderValueToPercentageConverter x:Key="SliderValueConverter" />
    <converters:BooleanToCollapsedConverter x:Key="BooleanToCollapsedConverter" />
    <converters:ByteArrayToImageConverter x:Key="ByteArrayToImageConverter" />
    <converters:LengthToBooleanConverter x:Key="LengthToBooleanConverter" />
    <converters:LengthToCollapsedConverter x:Key="LengthToCollapsedConverter" />

    <Color x:Key="HighlightColor" A="255" R="41" G ="124" B="237"/>
    <Color x:Key="PressedColor" A="255" R="205" G ="230" B="252"/>
    <Color x:Key="DarkTextColor" A="255" R="209 " G ="209" B="209"/>
    <Color x:Key="MediumTextColor" A="255" R="193" G ="193" B="193"/>
    <Color x:Key="LightTextColor" A="255" R="163 " G ="163 " B="163 "/>
    <Color x:Key="VeryLightTextColor" A="255" R="68 " G ="68 " B="68 "/>

    <!--<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#EDEDEA" />-->

    <ImageBrush x:Key="NoiseBrush" ImageSource="../Images/noise.png" TileMode="Tile" ViewportUnits="Absolute" Viewport="0,0 128,128" />
    <SolidColorBrush x:Key="RowHighlightBackgroundBrush" Color="#CDCDCD" />
    <SolidColorBrush x:Key="RowHighlightForegroundBrush" Color="#727272" />
    <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#222222" />
    <SolidColorBrush x:Key="WindowBorderBrush" Color="#000000" />
    <SolidColorBrush x:Key="DataGridHeaderBackgroundBrush" Color="Transparent" />
    <SolidColorBrush x:Key="DataGridHeaderForegroundBrush" Color="{StaticResource MediumTextColor}" />
    <SolidColorBrush x:Key="DataGridGridLineBrush" Color="#D5D5D5" />
    <SolidColorBrush x:Key="DataGridColumnHeaderBackgroundBrush" Color="#C9C9C7" />
    <SolidColorBrush x:Key="DataGridColumnHeaderForegroundBrush" Color="#D5D5D5" />
    <SolidColorBrush x:Key="DataGridColumnHeaderBorderBrush" Color="#D5D5D5" />
    <SolidColorBrush x:Key="DarkTextBrush" Color="{StaticResource DarkTextColor}" />
    <SolidColorBrush x:Key="MediumTextBrush" Color="{StaticResource MediumTextColor}" />
    <SolidColorBrush x:Key="LightTextBrush" Color="{StaticResource LightTextColor}" />
    <SolidColorBrush x:Key="VeryLightTextBrush" Color="{StaticResource VeryLightTextColor}" />
    <SolidColorBrush x:Key="IndividualReportBorderBrush" Color="{StaticResource DarkTextColor}" />
    <SolidColorBrush x:Key="DisabledButtonBrush" Color="#666666" />
    <SolidColorBrush x:Key="ContentBackgroundBrush" Color="#3E3E40" />
    
    <SolidColorBrush x:Key="HatchForegroundBrush" Color="#D7D7D5" />
    <SolidColorBrush x:Key="HatchBackgroundBrush" Color="#E6E6E2" />
    
    <SolidColorBrush x:Key="AccentBrush" Color="{StaticResource HighlightColor}" />
    <SolidColorBrush x:Key="HighlightBrush" Color="{StaticResource HighlightColor}" />
    <SolidColorBrush x:Key="PressedBrush" Color="{StaticResource PressedColor}" />
    <SolidColorBrush x:Key="DefaultButtonBrush" Color="{StaticResource MediumTextColor}" />

    <LinearGradientBrush x:Key="LightPanelBackgroundBrush" StartPoint="1,0" EndPoint="1,1">
        <GradientStop Color="#EFF1F3" Offset="0" />
        <GradientStop Color="White" Offset="1" />
    </LinearGradientBrush>

    <VisualBrush x:Key="HatchBrush" TileMode="Tile" Viewport="0,0,5,5" ViewportUnits="Absolute" Viewbox="0,0,5,5" ViewboxUnits="Absolute">
        <VisualBrush.Visual>
            <Canvas>
                <Rectangle Fill="{StaticResource HatchBackgroundBrush}" Width="6" Height="6" />
                <Path Stroke="{StaticResource HatchForegroundBrush}" Data="M 0 0 l 10 10" />
            </Canvas>
        </VisualBrush.Visual>
    </VisualBrush>

    <Style x:Key="Heading1" TargetType="{x:Type TextBlock}">
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="24" />
        <Setter Property="Foreground" Value="{StaticResource MediumTextBrush}" />
    </Style>

    <Style x:Key="Heading2" TargetType="{x:Type TextBlock}">
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="16" />
        <Setter Property="Foreground" Value="{StaticResource MediumTextBrush}" />
    </Style>

    <Style x:Key="Heading3" TargetType="{x:Type TextBlock}">
        <Setter Property="FontWeight" Value="DemiBold" />
        <Setter Property="FontSize" Value="14" />
        <Setter Property="Foreground" Value="{StaticResource MediumTextBrush}" />
    </Style>

    <Style x:Key="LabelHeading2" TargetType="{x:Type Label}">
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="16" />
        <Setter Property="Foreground" Value="{StaticResource MediumTextBrush}" />
    </Style>

    <Style x:Key="RightAlignStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="TextAlignment" Value="Right" />
    </Style>

    <Style x:Key="ProjectGridStyle" TargetType="Grid">
        <!--<Setter Property="Background" Value="#F5F5F5" />-->
        <Setter Property="Background" Value="{StaticResource ContentBackgroundBrush}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <!--<Setter Property="Background" Value="{DynamicResource ButtonBackgroundHover}" />-->
                <!--#CDD1D2-->
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="DarkButtonStyle"
           TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background"
                Value="#333333"/>
        <Setter Property="BorderBrush"
                Value="#333333"/>
        <Setter Property="BorderThickness"
                Value="1"/>
        <Setter Property="Foreground"
                Value="#D1D1D1"/>
        <Setter Property="HorizontalContentAlignment"
                Value="Center"/>
        <Setter Property="VerticalContentAlignment"
                Value="Center"/>
        <Setter Property="Padding"
                Value="16,3,16,5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ButtonBase}">
                    <Border Name="Chrome"
                                        Background="{TemplateBinding Background}"
                                        BorderBrush="{TemplateBinding BorderBrush}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        SnapsToDevicePixels="true">
                        <ContentPresenter Name="Presenter" Margin="{TemplateBinding Padding}"
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          RecognizesAccessKey="True"
                                          SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#515151"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="#3E3E42" />
                            <Setter Property="BorderBrush" Value="#3E3E42"/>
                            <Setter Property="Foreground" Value="#D1D1D1"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Background" Value="{StaticResource AccentBrush}" />
                            <Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/>
                            <Setter Property="Foreground" Value="#D1D1D1"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="true">
                            <Setter TargetName="Chrome" Property="BorderBrush" Value="{StaticResource AccentBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="Thumb">
        <!--<Setter Property="Background" Value="#F5F5F5" />-->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type Thumb}">
                    <Border Background="White"
                            BorderBrush="#6495ED"
                            BorderThickness="1">
                        <ContentPresenter />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ProjectBorderStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="BorderThickness" Value="3" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <!--<Setter Property="Background" Value="{DynamicResource ButtonBackgroundHover}" />-->
                <!--#CDD1D2-->
                <Setter Property="BorderBrush" Value="#555555" />
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <DataTemplate x:Key="ProjectSummaryViewItemTemplate">
        <Border Style="{StaticResource ProjectBorderStyle}" IsHitTestVisible="True">
            <Grid x:Name="grdProject" Width="620" Height="90" Style="{StaticResource ProjectGridStyle}">
                <Grid.ColumnDefinitions>
                    <!--<ColumnDefinition Width="90" />-->
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" Foreground="{StaticResource MediumTextBrush}"  
                           Style="{StaticResource Heading2}" Text="{Binding Title}"  IsHitTestVisible="False"
                           Margin="10, 8, 10, 0" Visibility="{Binding IsExistingProject, Converter={StaticResource ResourceKey=BooleanToVisibilityConverter}}"  x:Name="projectInfoTitleTextBlock" />

                <TextBlock Grid.Row="1" Grid.Column="0" Foreground="{StaticResource MediumTextBrush}" FontWeight="Bold"
                           IsHitTestVisible="False"
                           Margin="10, 2, 10, 2" Visibility="{Binding IsExistingProject, Converter={StaticResource ResourceKey=BooleanToVisibilityConverter}}" >
                    <Run Text="Last saved:"></Run>
                    <Run Text="{Binding LastSaved}" />
                </TextBlock>

                <TextBlock Grid.Row="2" Grid.Column="0" Foreground="{StaticResource MediumTextBrush}"  
                           VerticalAlignment="Top" TextWrapping="Wrap" Text="{Binding Summary}"  IsHitTestVisible="False"
                           Margin="10, 0, 10, 8" Visibility="{Binding IsExistingProject, Converter={StaticResource ResourceKey=BooleanToVisibilityConverter}}"  x:Name="projectInfoDescTextBlock" />
            </Grid>
        </Border>
    </DataTemplate>

    <DataTemplate x:Key="FormSummaryViewItemTemplate">
        <Border Style="{StaticResource ProjectBorderStyle}" IsHitTestVisible="True">
            <Grid x:Name="grdProject" Width="320" Height="90" Style="{StaticResource ProjectGridStyle}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" Foreground="{StaticResource DarkTextBrush}"  
                           Style="{StaticResource Heading2}" Text="{Binding Title}"  IsHitTestVisible="False"
                           Margin="10, 8, 10, 0" />

                <TextBlock Grid.Row="1" Grid.Column="0" Foreground="{StaticResource MediumTextBrush}" FontWeight="Bold"
                           IsHitTestVisible="False"
                           Margin="10, 2, 10, 2" >
                    <Run Text="Last saved:"></Run>
                    <Run Text="{Binding LastSaved}" />
                </TextBlock>

                <TextBlock Grid.Row="2" Grid.Column="0" Foreground="#667E99"  
                           VerticalAlignment="Top" TextWrapping="Wrap" Text="{Binding Description}"  IsHitTestVisible="False"
                           Margin="10, 0, 10, 8"  />
            </Grid>
        </Border>
    </DataTemplate>

    <DataTemplate x:Key="DataEntryPagesItemTemplate">
        <Border>
            <local:DataEntryCanvas Height="1010" Width="810" x:Name="canvasMain" PageId="{Binding PageId}" >

            </local:DataEntryCanvas>
        </Border>
    </DataTemplate>

    

    <Style TargetType="{x:Type local:ProjectsSummaryView}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type local:ProjectsSummaryView}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                            <ItemsPresenter DockPanel.Dock="Bottom" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type ContentPresenter}">
                    <Setter Property="Height" Value="Auto"></Setter>
                    <Setter Property="Margin" Value="0,0,2,2"></Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate" Value="{StaticResource ProjectSummaryViewItemTemplate}" />
    </Style>

    <Style TargetType="{x:Type local:FormsSummaryView}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type local:FormsSummaryView}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ItemsPresenter DockPanel.Dock="Bottom" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type ContentPresenter}">
                    <Setter Property="Height" Value="Auto"></Setter>
                    <Setter Property="Margin" Value="0,0,2,2"></Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate" Value="{StaticResource FormSummaryViewItemTemplate}" />
    </Style>

    <Style TargetType="{x:Type local:CircleButton}">
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type local:CircleButton}">

                    <Grid x:Name="PART_Grid" Background="Transparent" VerticalAlignment="Center">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <!--<Ellipse x:Name="PART_Circle" Width="28" Height="28" Grid.Row="0" Margin="6, 2, 6, 2" HorizontalAlignment="Center" VerticalAlignment="Center" 
                                 StrokeThickness="2" 
                                 Stroke="White"
                                 Stretch="Fill" 
                                 Fill="Transparent" />
                        <Path x:Name="PART_Shape" HorizontalAlignment="Center" Grid.Row="0" Margin="6, 2, 6, 2" Width="14" Height="14" Stretch="Fill" Fill="White" Data="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=PathData, Mode=OneTime}"/>

                        <TextBlock x:Name="PART_Text" Foreground="White" Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text.Length, Converter={StaticResource LengthToVisibilityConverter}}" HorizontalAlignment="Center" Grid.Row="1" Margin="1" FontSize="8pt" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text, Mode=OneTime}" />-->

                        <Ellipse x:Name="PART_Circle" Width="28" Height="28" Grid.Row="0" Margin="6, 2, 6, 2" HorizontalAlignment="Center" VerticalAlignment="Center" 
                                 StrokeThickness="2" 
                                 Stroke="{StaticResource DarkTextBrush}"
                                 Stretch="Fill" 
                                 Fill="Transparent" />
                        <Path x:Name="PART_Shape" HorizontalAlignment="Center" Grid.Row="0" Margin="6, 2, 6, 2" Width="14" Height="14" Stretch="Fill" Fill="{StaticResource DarkTextBrush}" Data="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=PathData, Mode=OneTime}"/>

                        <TextBlock x:Name="PART_Text" Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text.Length, Converter={StaticResource LengthToVisibilityConverter}}" HorizontalAlignment="Center" Grid.Row="1" Margin="1" FontSize="8pt" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text, Mode=OneTime}" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <!--<Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill" Value="#0A6BBC" />
                        </Trigger>
                        <Trigger Property="IsPressed"  Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill" Value="White" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="#0A6BBC" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="PART_Circle" Property="Stroke" Value="#C0C1C9" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="#C0C1C9" />
                        </Trigger>-->

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill" Value="{StaticResource WindowBackgroundBrush}" />
                            <Setter TargetName="PART_Circle" Property="Stroke" Value="{StaticResource HighlightBrush}" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="{StaticResource DarkTextBrush}" />
                        </Trigger>
                        <Trigger Property="IsPressed"  Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill" Value="{StaticResource DarkTextBrush}" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="White" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="PART_Circle" Property="Stroke" Value="{StaticResource DisabledButtonBrush}" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="{StaticResource DisabledButtonBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Button}" x:Key="NavButtonStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type Button}">
                    <Grid Background="{TemplateBinding Background}" VerticalAlignment="Stretch" Height="Auto">
                        <ContentPresenter />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="Foreground" Value="{StaticResource DisabledButtonBrush}" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="Foreground" Value="{StaticResource DarkTextBrush}" />
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <Style TargetType="{x:Type local:DataEntryCanvas}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:DataEntryCanvas}">
                    <!--<Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">-->
                    <!--<Border x:Name="borderMain"  Background="White" BorderThickness="1" BorderBrush="#D8D8D8" Margin="0, 0, 0, 8" >-->
                    <Border x:Name="borderMain" BorderThickness="1" Margin="0, 0, 0, 8">
                        <Border.BorderBrush>
                            <SolidColorBrush Color="Black" Opacity="0.1"/>
                        </Border.BorderBrush>

                        <Border BorderThickness="1">
                            <Border.BorderBrush>
                                <SolidColorBrush Color="Black" Opacity="0.3"/>
                            </Border.BorderBrush>

                            <Border BorderThickness="1">
                                <Border.BorderBrush>
                                    <SolidColorBrush Color="Black" Opacity="0.5"/>
                                </Border.BorderBrush>

                                <Border BorderThickness="1" Background="White" >
                                    <Border.BorderBrush>
                                        <SolidColorBrush Color="Black" Opacity="0.8"/>
                                    </Border.BorderBrush>
                                    <!--<ItemsPresenter />-->
                                    <Canvas Height="940" Width="730" x:Name="canvasMain" />
                                </Border>
                            </Border>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <!--<Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Canvas Height="940" Width="730" x:Name="canvasMain" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>-->
        <!--<Setter Property="ItemTemplate" Value="{StaticResource DataEntryCanvasItemTemplate}" />-->
    </Style>

    <Style TargetType="{x:Type local:WindowNavButton}">
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="x1" TargetType="{x:Type local:WindowNavButton}">

                    <Grid x:Name="PART_Grid" Background="Transparent" VerticalAlignment="Center">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <Ellipse x:Name="PART_Circle" Width="28" Height="28" Grid.Row="0" Margin="6, 2, 6, 2" HorizontalAlignment="Center" VerticalAlignment="Center" 
                                 StrokeThickness="2" 
                                 Stroke="{StaticResource MediumTextBrush}"
                                 Stretch="Fill" 
                                 Fill="Transparent" />
                        <Path x:Name="PART_Shape" HorizontalAlignment="Center" Grid.Row="0" Margin="6, 2, 6, 2" Width="14" Height="14" Stretch="Fill" Fill="{StaticResource MediumTextBrush}" Data="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:WindowNavButton}, Mode=FindAncestor}, Path=PathData, Mode=OneTime}"/>

                        <!--<TextBlock x:Name="PART_Text" Foreground="White" Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text.Length, Converter={StaticResource LengthToVisibilityConverter}}" HorizontalAlignment="Center" Grid.Row="1" Margin="1" FontSize="8pt" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:CircleButton}, Mode=FindAncestor}, Path=Text, Mode=OneTime}" />-->
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill">
                                <Setter.Value>
                                    <SolidColorBrush Opacity="0.4" Color="Black" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="PART_Circle" Property="Stroke" Value="{StaticResource HighlightBrush}" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="{StaticResource DarkTextBrush}" />
                        </Trigger>
                        <Trigger Property="IsPressed"  Value="True">
                            <Setter TargetName="PART_Circle" Property="Fill" Value="Black" />
                            <Setter TargetName="PART_Shape" Property="Fill" Value="White" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:DataEntryPages}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:DataEntryPages}">
                    <Border 
                        Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid SnapsToDevicePixels="True">
                            <ItemsPresenter IsEnabled="{Binding SelectedForm.RecordsView.Count, Converter={StaticResource LengthToBooleanConverter}}"
                                x:Name="panelMain" />

                            <Grid Visibility="{Binding SelectedForm.RecordsView.Count, Converter={StaticResource LengthToCollapsedConverter}, FallbackValue=Collapsed}">
                                <Grid.Background>
                                    <SolidColorBrush Color="Black" Opacity="0.5" />
                                </Grid.Background>
                            <Border SnapsToDevicePixels="True" Width="Auto" Height="Auto" MaxWidth="800" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="20, 70, 20, 0"
                                 
                                    BorderBrush="{StaticResource AccentBrush}" Background="{StaticResource LightPanelBackgroundBrush}" BorderThickness="1" Padding="20">
                                <Border.Effect>
                                    <DropShadowEffect BlurRadius="20" />
                                </Border.Effect>
                                <StackPanel>
                                    <Rectangle HorizontalAlignment="Left" Width="100" Height="6" Fill="{StaticResource AccentBrush}" />
                                    <TextBlock Margin="0" Foreground="{StaticResource VeryLightTextBrush}" Style="{StaticResource Heading1}" Text="GETTING STARTED"></TextBlock>
                                    <TextBlock Margin="0, 0, 0, 20" Foreground="{StaticResource VeryLightTextBrush}" 
                                               TextWrapping="Wrap"
                                               Text="This form has no records present. To get started entering data, click the New Record button." />

                                    <StackPanel Height="10" />

                                    <Button Width="Auto" HorizontalAlignment="Left" Content="Create New Record" Command="{Binding AddRecordCommand}" IsEnabled="{Binding Path=AddRecordCommand.CanExecute}" />
                                    
                                    
                                </StackPanel>
                            </Border>
                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <VirtualizingStackPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type ContentPresenter}">
                    <Setter Property="Height" Value="Auto"></Setter>
                    <Setter Property="Margin" Value="0,0,0,0"></Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate" Value="{StaticResource DataEntryPagesItemTemplate}" />
    </Style>

    <DataTemplate x:Key="RadioButtonListItemTemplate">
        
            <RadioButton x:Name="radioButton" IsHitTestVisible="False" IsTabStop="False" Content="{Binding DisplayUI}" Margin="0, 0, 8, 0" />
        

        <DataTemplate.Triggers>
            <DataTrigger
                Binding="{Binding
                    RelativeSource={RelativeSource
                        Mode=FindAncestor,
                        AncestorType={x:Type ListBoxItem}},
                        Path=IsSelected}"
                Value="True">
                <Setter
                TargetName="radioButton"
                Property="IsChecked"
                Value="True"/>
            </DataTrigger>
            <!--<DataTrigger
                Binding="{Binding
                    RelativeSource={RelativeSource
                        Mode=FindAncestor,
                        AncestorType={x:Type ListBoxItem}},
                        Path=IsSelected}"
                Value="False">
                <Setter
                TargetName="radioButton"
                Property="IsChecked"
                Value="False"/>
            </DataTrigger>-->
        </DataTemplate.Triggers>
    </DataTemplate>

    <DataTemplate x:Key="CheckBoxListItemTemplate">

        <CheckBox x:Name="checkBox" IsHitTestVisible="False" IsTabStop="False" Content="{Binding DisplayUI}" Margin="0, 0, 4, 0" />
        

        <DataTemplate.Triggers>
            <DataTrigger
                Binding="{Binding
                    RelativeSource={RelativeSource
                        Mode=FindAncestor,
                        AncestorType={x:Type ListBoxItem}},
                        Path=IsSelected}"
                Value="True">
                <Setter
                TargetName="checkBox"
                Property="IsChecked"
                Value="True"/>
            </DataTrigger>
            <!--<DataTrigger
                Binding="{Binding
                    RelativeSource={RelativeSource
                        Mode=FindAncestor,
                        AncestorType={x:Type ListBoxItem}},
                        Path=IsSelected}"
                Value="False">
                <Setter
                TargetName="checkBox"
                Property="IsChecked"
                Value="False"/>
            </DataTrigger>-->
        </DataTemplate.Triggers>
    </DataTemplate>

    <Style x:Key="RadioButtonListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
        <Style.Resources>
            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
                             Color="Transparent"/>
        </Style.Resources>

        <Setter Property="SnapsToDevicePixels"
          Value="True" />
        <Setter Property="Padding"
          Value="4,1" />
        <Setter Property="IsTabStop"
                Value="True" />
        <Setter Property="HorizontalContentAlignment"
          Value="{Binding HorizontalContentAlignment,
                          RelativeSource={RelativeSource FindAncestor,
                                                         AncestorLevel=1,
                                                         AncestorType={x:Type ItemsControl}}}" />
        <Setter Property="VerticalContentAlignment"
          Value="{Binding VerticalContentAlignment,
                          RelativeSource={RelativeSource FindAncestor,
                                                         AncestorLevel=1,
                                                         AncestorType={x:Type ItemsControl}}}" />
        <Setter Property="Background"
          Value="Transparent" />
        <Setter Property="BorderBrush"
          Value="Transparent" />
        <Setter Property="BorderThickness"
          Value="1" />
        <Setter Property="FocusVisualStyle">
            <Setter.Value>
                <Style>
                    <Setter Property="Control.Template">
                        <Setter.Value>
                            <ControlTemplate>
                                <Rectangle Margin="2"
                         SnapsToDevicePixels="True"
                         Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
                         StrokeDashArray="1 2"
                         StrokeThickness="1" />
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <Border x:Name="Bd"
                Background="{TemplateBinding Background}"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}"
                Padding="{TemplateBinding Padding}"
                SnapsToDevicePixels="True">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Content="{TemplateBinding Content}"
                            ContentStringFormat="{TemplateBinding ContentStringFormat}"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Selector.IsSelectionActive" Value="False" />
                                <Condition Property="IsSelected" Value="True" />
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Bd" Property="Background" Value="Transparent" />
                            <Setter TargetName="Bd" Property="BorderBrush" Value="Transparent" />
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Selector.IsSelectionActive" Value="True" />
                                <Condition Property="IsSelected" Value="True" />
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Bd" Property="Background" Value="Transparent" />
                            <Setter TargetName="Bd" Property="BorderBrush" Value="Transparent" />
                        </MultiTrigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="RadioButtonListBoxStyle" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="1" SnapsToDevicePixels="True">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" TargetName="Bd" Value="White"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="#FFD9D9D9"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
                        AncestorType={x:Type local:RadioButtonList}},
                        Path=Orientation}" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle" Value="{StaticResource RadioButtonListBoxItemStyle}" />
        <Setter Property="ItemTemplate" Value="{StaticResource RadioButtonListItemTemplate}" />
    </Style>

    <Style x:Key="CheckBoxListBoxStyle" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="1" SnapsToDevicePixels="True">
                        <!--<ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}">-->
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        <!--</ScrollViewer>-->
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Background" TargetName="Bd" Value="White"/>
                            <Setter Property="BorderBrush" TargetName="Bd" Value="#FFD9D9D9"/>
                        </Trigger>
                        <!--<MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsGrouping" Value="True"/>
                                <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
                        </MultiTrigger>-->
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
                        AncestorType={x:Type local:RadioButtonList}},
                        Path=Orientation}" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle" Value="{StaticResource RadioButtonListBoxItemStyle}" />
        <Setter Property="ItemTemplate" Value="{StaticResource CheckBoxListItemTemplate}" />
    </Style>

    <Style TargetType="{x:Type local:ImagePicker}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:ImagePicker}">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        
                        <Border Grid.Row="0"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                            <Image 
                                Source="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:ImagePicker}}, Path=ImageSource}" 
                                Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:ImagePicker}}, Path=ImageHeight}"
                                Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:ImagePicker}}, Path=ImageWidth}" />
                        </Border>
                        
                        <StackPanel x:Name="editorPanel" Margin="0, 2, 0, 0" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Visibility="Hidden" >
                            <local:CircleButton x:Name="buttonEdit" PathData="F1 M 53.2929,21.2929L 54.7071,22.7071C 56.4645,24.4645 56.4645,27.3137 54.7071,29.0711L 52.2323,31.5459L 44.4541,23.7677L 46.9289,21.2929C 48.6863,19.5355 51.5355,19.5355 53.2929,21.2929 Z M 31.7262,52.052L 23.948,44.2738L 43.0399,25.182L 50.818,32.9601L 31.7262,52.052 Z M 23.2409,47.1023L 28.8977,52.7591L 21.0463,54.9537L 23.2409,47.1023 Z " 
                                                Text="Edit" />
                            
                            <StackPanel Width="6" />

                            <local:CircleButton x:Name="buttonDelete" PathData="F1 M 25.3333,23.75L 50.6667,23.75C 51.5411,23.75 51.8541,27.3125 51.8541,27.3125L 24.1458,27.3125C 24.1458,27.3125 24.4589,23.75 25.3333,23.75 Z M 35.625,19.7917L 40.375,19.7917C 40.8122,19.7917 41.9583,20.9378 41.9583,21.375C 41.9583,21.8122 40.8122,22.9584 40.375,22.9584L 35.625,22.9584C 35.1878,22.9584 34.0416,21.8122 34.0416,21.375C 34.0416,20.9378 35.1878,19.7917 35.625,19.7917 Z M 27.7083,28.5L 48.2916,28.5C 49.1661,28.5 49.875,29.2089 49.875,30.0834L 48.2916,53.8334C 48.2916,54.7078 47.5828,55.4167 46.7083,55.4167L 29.2917,55.4167C 28.4172,55.4167 27.7083,54.7078 27.7083,53.8334L 26.125,30.0834C 26.125,29.2089 26.8339,28.5 27.7083,28.5 Z M 30.0833,31.6667L 30.4792,52.25L 33.25,52.25L 32.8542,31.6667L 30.0833,31.6667 Z M 36.4167,31.6667L 36.4167,52.25L 39.5833,52.25L 39.5833,31.6667L 36.4167,31.6667 Z M 43.1458,31.6667L 42.75,52.25L 45.5208,52.25L 45.9167,31.6667L 43.1458,31.6667 Z " 
                                                Text="Delete" />
                        </StackPanel>
                        
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="editorPanel" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--<Style TargetType="{x:Type local:CharacterBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:CharacterBox}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->

    <Style TargetType="{x:Type local:FixedCellTextBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:FixedCellTextBox}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <ItemsPresenter />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border BorderBrush="Black" BorderThickness="1" Margin="-1, 0, 0, 0">
                        <local:CharacterBox MaxLength="1" BorderBrush="Transparent" Text="{Binding Path=Character, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                            VerticalAlignment="Center" HorizontalAlignment="Center" 
                                            FontFamily="Courier New, monospace" Padding="3,4,3,4"/>
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style TargetType="{x:Type local:SearchBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:SearchBox}">
                    <Border BorderBrush="{StaticResource DataGridGridLineBrush}" BorderThickness="1" Background="White" HorizontalAlignment="Left">
                        <StackPanel Orientation="Horizontal">
                            <StackPanel.InputBindings>
                                <KeyBinding Key="Enter" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:SearchBox}, Mode=FindAncestor}, Path=Search}"  />
                            </StackPanel.InputBindings>
                            <Grid>
                                <TextBox Name="txtSearch" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:SearchBox}, Mode=FindAncestor}, Path=SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="320">
                                    <!--<i:Interaction.Triggers>
                                        <iex:KeyTrigger Key="Enter">
                                            <i:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:SearchBox}, Mode=FindAncestor}, Path=Search}"/>
                                        </iex:KeyTrigger>
                                    </i:Interaction.Triggers>-->

                                    <TextBox.Style>
                                        <Style TargetType="TextBox">
                                            <!--<Setter Property="Template" Value="{DynamicResource TextBoxBaseControlTemplate1}"/>-->
                                            <Setter Property="BorderBrush" Value="Transparent"/>
                                            <Setter Property="Background" Value="Transparent"/>
                                            <Setter Property="Margin" Value="1"/>
                                            <Style.Triggers>
                                                <Trigger Property="IsMouseOver" Value="True">
                                                    <Setter Property="BorderBrush" Value="Transparent"/>
                                                    <Setter Property="Background" Value="Transparent"/>
                                                </Trigger>
                                            </Style.Triggers>
                                        </Style>
                                    </TextBox.Style>
                                </TextBox>
                            </Grid>
                            <Button x:Name="btnSearch" HorizontalAlignment="Right" Height="24" Width="24" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:SearchBox}, Mode=FindAncestor}, Path=Search}">
                                <Button.Style>
                                    <Style TargetType="Button">
                                        <Setter Property="Background" Value="{StaticResource AccentBrush}" />
                                        <Setter Property="BorderBrush" Value="White" />
                                    </Style>
                                </Button.Style>
                                <Button.Content>
                                    <Path Width="14" Height="14" Stretch="Fill" Fill="#FFFFFFFF" Data="F1 M 42.5,22C 49.4036,22 55,27.5964 55,34.5C 55,41.4036 49.4036,47 42.5,47C 40.1356,47 37.9245,46.3435 36,45.2426L 26.9749,54.2678C 25.8033,55.4393 23.9038,55.4393 22.7322,54.2678C 21.5607,53.0962 21.5607,51.1967 22.7322,50.0251L 31.7971,40.961C 30.6565,39.0755 30,36.8644 30,34.5C 30,27.5964 35.5964,22 42.5,22 Z M 42.5,26C 37.8056,26 34,29.8056 34,34.5C 34,39.1944 37.8056,43 42.5,43C 47.1944,43 51,39.1944 51,34.5C 51,29.8056 47.1944,26 42.5,26 Z "/>
                                </Button.Content>
                            </Button>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
</ResourceDictionary>
